import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 杨已萱
 * Date: 2022-11-12
 * Time: 18:14
 */
public class text {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int hehe = random.nextInt(50)+100;
        while (true){
            System.out.println("请输入你要猜的数:");
            int num = scan.nextInt();
            if(num > hehe ){
                System.out.println("猜大了蠢驴!");
            } else if (num == hehe) {
                System.out.println("猜对啦!");
                break;

            }else {//别写条件啦!最后一个else不需要条件默认只剩这最后一中种情况!!!!!!!
                System.out.println("猜小啦蠢驴!");
            }
        }




    }
    public static void main3(String[] args) {
        int sum =0;

        for (int k = 1; k <= 5; k++) {

            int ret = 1;
            for (int i = 1; i <= k; i++) {
                ret *= i;


            }
            sum += ret ;
            System.out.println("----->"+ret);


        }System.out.println(sum);



    }
    public static void main2(String[] args) {
        int sum = 0;
        for (int k = 1; k <=4; k++) {
            int ret = 1;


            for (int i = 1; i <=k; i++) {
                ret *= i;

                System.out.println("---->"+ret);

            }
            sum += ret;
        }
        System.out.println(sum);



    }
    public static void main1(String[] args) {
        int a = 1;
        while(a <= 100 ) {
            a++;
            if(a % 3 == 0 &&a % 5 == 0 ){

                System.out.println(a);

            }

        }
    }
}
